import os

BASE_DIR = os.path.abspath(os.path.join(os.getcwd(),".."))
path_list = BASE_DIR.split("\\")
if path_list[-1] == "autoFrameUnitter":
    pass
elif path_list[-1] == "软件测试":
    BASE_DIR+="\\autoFrameUnitter"
elif path_list[-1] == "workspace":
    BASE_DIR += "\\autoFrame"
print(BASE_DIR)